﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _uitwerking__Algoritmiek.AssignementForms
{
    public partial class form_MACHT : Form
    {
        code_MACHT algoritme;

        public form_MACHT(code_MACHT algoritme)
        {
            InitializeComponent();
            this.algoritme = algoritme;
        }

        private void btn_do_Click(object sender, EventArgs e)
        {
            algoritme.Bewerkingen = 0;
            lbl_output.Text = algoritme.Execute(Convert.ToInt32(tb_n.Text), Convert.ToInt32(tb_a.Text)).ToString();
            lbl_bewerkingen.Text = algoritme.Bewerkingen.ToString();
        }
    }
}
